﻿using System;
using System.Collections.Generic;
using System.Linq;
using Backend.JYD.Model;
using Backend.JYD.Model.Cust;

namespace Backend.JYD.IDAL.Cust
{
	public interface ICustBase
	{
		string AddCustBase(CustBase info);

        /// <summary>
        /// 修改客户信息，包括3要素
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
		bool UpdateCustBase(CustBase info);
        /// <summary>
        /// 修改客户信息，不包括3要素
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool UpdateCustBaseInfo(CustBase info);

        CustBase GetCustBaseByCustNo(string custNo);

        CustBase GetCustBaseByPhone(string phone);

        CustBase GetCustBaseByPaper(string paperType, string paperNo, string custName);

        IList<CustBase> GetCustBaseByCustNos(IList<string> custNos);

        PageInfo<CustBase> SearchCustBaseInfo(PageInfo page, string no, string name, string phone, int? chanel, bool isAll);
	}
}